#include "SoundEffect.h"

#include "_SoundEffect.h"

SoundEffect::SoundEffect(std::string soundId, std::string fileName) {
  _SoundEffect::getInstance().loadSound(soundId,
                                        fileName);  //错误处理已在内部搞定
  SoundEffect::soundId = soundId;
}

void SoundEffect::play(bool isLoop) {
  _SoundEffect::getInstance().playSound(soundId,
                                        isLoop);  //错误处理已在内部搞定
}
